package com.redis.sdk.lock;

/**
 * Lock
 *
 * @description: 加锁操作并，执行回调返回回调返回值
 * @author: cyj
 * @date 2022 -03-21 16:59:33
 *
 *
 */
@FunctionalInterface
public interface ILock<T, R, C> {
    /**
     * Lock r
     *
     * @param t            t
     * @param lockCallBack lock call back
     * @return the r
     */
    R lock(T t, LockCallBack<C> lockCallBack);
}
